#ifndef COOKIEJAR_H
#define COOKIEJAR_H

#include <QtNetwork>

class CookieJar : public QNetworkCookieJar
{
  Q_OBJECT
public:
  explicit CookieJar(QObject *parent = 0);
#if 0
  virtual QList<QNetworkCookie>	cookiesForUrl( const QUrl & url ) const;
  virtual bool setCookiesFromUrl( const QList<QNetworkCookie> & cookieList, const QUrl & url );
#endif
  void saveCookie();
  void loadCookie();
  static CookieJar *getInstance();

signals:

public slots:

private:
//  QMap<QUrl, QList<QNetworkCookie> > cookies;
  QSettings settings;
  static CookieJar* instance;
};

#endif // COOKIEJAR_H
